package com.vipsoft.web.crontab;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

/**
 * @Author:
 * @Date: 2022/2/18
 * @Description:
 */
@Component
@EnableScheduling
public class LockerSchedule {

    Logger logger = LoggerFactory.getLogger(this.getClass());


    /**
     *
     */
    //Scheduled(cron = "${vipsoft.locker-cron}")
    public void callbackExpress() {
        try {
            logger.info("开始同步 -- ");

            logger.info("完成同步 -- ");
        } catch (Exception ex) {
            logger.error("同步，异常:" + ex.getMessage(), ex);
        }
    }

}
